package com.service;

import java.util.List;

import com.bean.ReturnApply;

/**
 * @author author : 张鹏
 * @date createTime：2018年2月25日 下午5:33:49
 * @Description: 该类的功能描述
 */
public interface ReturnApplyService {

	/**
	 * 创建退货申请
	 * 
	 * @param apply
	 * @return
	 */
	public int createNewReturnApply(ReturnApply apply);

	/**
	 * 审核退货申请
	 * 
	 * @param apply
	 * @return
	 */
	public int exameReturnApply(ReturnApply apply);

	/**
	 * 根据主键查询退货申请
	 * 
	 * @param primaryKey
	 * @return
	 */
	public ReturnApply getReturnApplyByPrimaryKey(int primaryKey);

	/**
	 * 根据状态码查询
	 * 
	 * @param state
	 * @return
	 */
	public List<ReturnApply> getReturnApplyByState(int state);
	
	public List<ReturnApply> getReturnApplyBySupplierId(int supplierId);

	public List<ReturnApply> getReturnApplyByStateAndSupplierId(
			ReturnApply apply);

	public List<ReturnApply> getAllReturnApply();

	/**
	 * 根据结束码查询
	 * 
	 * @param finish
	 * @return
	 */
	public List<ReturnApply> getReturnApplyByFinish(int finish);

}
